package com.grandstream.website.app.common;

public class Page <T>{

	public final static String ASC="asc";
	
	public final static String DESC="desc";
	
	public final static int DEFAULTPAGESIEZE=10;
	
	private String offset;
	
	private int pagesize;   //一页显示多少条记录
	
	private int pagenum =1;
	
	private int resulttotal;
	
	private T resultList;

	public Page(){
		pagesize=DEFAULTPAGESIEZE;
	}
	
	public Page(int _pagesize){
		pagesize=_pagesize;
	}
	
	public int getPagesize() {
		return pagesize;
	}

	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}

	public int getPagenum() {
		return pagenum;
	}

	public void setPagenum(int pagenum) {
		this.pagenum = pagenum;
	}
	

	public int getResulttotal() {
		return resulttotal;
	}

	public void setResulttotal(int resulttotal) {
		this.resulttotal = resulttotal;
	}

	public String getOffset() {
		return offset;
	}

	public void setOffset(String offset) {
		this.offset = offset;
	}

	
	public T getResultList() {
		return resultList;
	}

	public void setResultList(T resultList) {
		this.resultList = resultList;
	}
	
}
